package com.model;

import java.util.Set;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.OneToMany;
import javax.persistence.OneToOne;

import org.hibernate.annotations.LazyCollection;
import org.hibernate.annotations.LazyToOne;

@Entity
public class Exaexamine {
	private String exano;
	private int typeid;
	private String stuffid;
	private String makedate;
	private String confirmdate;
	private int action;
	private String actstuff;
	private int state;
	private String lastdate;
	private int setupno;
	private String degree;
	private String title;
	private String content;
	private String pathstep;
	private String fileno;
	private String ispass;
	private String actenddate;
	private String isremind;
	private Set<Exafile> exafile;
	private Astuff astuff;

	@OneToOne
	@JoinColumn(name = "stuffid", insertable = false, updatable = false)
	public Astuff getAstuff() {
		return astuff;
	}

	public void setAstuff(Astuff astuff) {
		this.astuff = astuff;
	}

	@OneToMany(fetch = FetchType.EAGER)
	@JoinColumn(name = "exano")
	public Set<Exafile> getExafile() {
		return exafile;
	}

	public void setExafile(Set<Exafile> exafile) {
		this.exafile = exafile;
	}

	@Id
	public String getExano() {
		return exano;
	}

	public void setExano(String exano) {
		this.exano = exano;
	}

	public int getTypeid() {
		return typeid;
	}

	public void setTypeid(int typeid) {
		this.typeid = typeid;
	}

	public String getStuffid() {
		return stuffid;
	}

	public void setStuffid(String stuffid) {
		this.stuffid = stuffid;
	}

	public String getMakedate() {
		return makedate;
	}

	public void setMakedate(String makedate) {
		this.makedate = makedate;
	}

	public String getConfirmdate() {
		return confirmdate;
	}

	public void setConfirmdate(String confirmdate) {
		this.confirmdate = confirmdate;
	}

	public int getAction() {
		return action;
	}

	public void setAction(int action) {
		this.action = action;
	}

	public String getActstuff() {
		return actstuff;
	}

	public void setActstuff(String actstuff) {
		this.actstuff = actstuff;
	}

	public int getState() {
		return state;
	}

	public void setState(int state) {
		this.state = state;
	}

	public String getLastdate() {
		return lastdate;
	}

	public void setLastdate(String lastdate) {
		this.lastdate = lastdate;
	}

	public int getSetupno() {
		return setupno;
	}

	public void setSetupno(int setupno) {
		this.setupno = setupno;
	}

	public String getDegree() {
		return degree;
	}

	public void setDegree(String degree) {
		this.degree = degree;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public String getPathstep() {
		return pathstep;
	}

	public void setPathstep(String pathstep) {
		this.pathstep = pathstep;
	}

	public String getFileno() {
		return fileno;
	}

	public void setFileno(String fileno) {
		this.fileno = fileno;
	}

	public String getIspass() {
		return ispass;
	}

	public void setIspass(String ispass) {
		this.ispass = ispass;
	}

	public String getActenddate() {
		return actenddate;
	}

	public void setActenddate(String actenddate) {
		this.actenddate = actenddate;
	}

	public String getIsremind() {
		return isremind;
	}

	public void setIsremind(String isremind) {
		this.isremind = isremind;
	}

}
